let path = require('path');
let {CleanWebpackPlugin} = require('clean-webpack-plugin')
let webpack = require('webpack');
module.exports = {
  mode:'production',
  entry:{
    vue:['vue']
  },
  output:{
    filename:'dll_[name].js',
    path:path.resolve(__dirname,'../dist'),
    library:'dll_[name]'
  },
  plugins:[
    new CleanWebpackPlugin(),
    new webpack.DllPlugin({
      name:'dll_[name]',// name == library
      path:path.resolve(__dirname,'../dist','manifest.json')
    })
  ]
}